package com.zx.framework.plat.module.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * Module entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "s_module")
public class Module implements java.io.Serializable {

	// Fields

	private String id;
	private String projectId;
	private String owner;
	private String name;
	private Integer leaf;
	private Integer type;
	private String platform;
	private Integer pos;
	private Integer operate;
	private Integer shortcut;
	private String url;
	private String rmethod;
	private String layer;
	private Integer showType;
	private Integer status;
	private String icon;
	private String params;
	private String xtype;
	private String remark;
	private String handler;

	// Constructors

	/** default constructor */
	public Module() {
	}

	/** minimal constructor */
	public Module(String id, String projectId, String name, Integer leaf,
			Integer type, String platform, Integer pos, Integer operate,
			String layer, Integer showType, Integer status) {
		this.id = id;
		this.projectId = projectId;
		this.name = name;
		this.leaf = leaf;
		this.type = type;
		this.platform = platform;
		this.pos = pos;
		this.operate = operate;
		this.layer = layer;
		this.showType = showType;
		this.status = status;
	}

	/** full constructor */
	public Module(String id, String projectId, String owner, String name,
			Integer leaf, Integer type, String platform, Integer pos,
			Integer operate, Integer shortcut, String url, String rmethod,
			String layer, Integer showType, Integer status, String icon,
			String params, String xtype, String remark) {
		this.id = id;
		this.projectId = projectId;
		this.owner = owner;
		this.name = name;
		this.leaf = leaf;
		this.type = type;
		this.platform = platform;
		this.pos = pos;
		this.operate = operate;
		this.shortcut = shortcut;
		this.url = url;
		this.rmethod = rmethod;
		this.layer = layer;
		this.showType = showType;
		this.status = status;
		this.icon = icon;
		this.params = params;
		this.xtype = xtype;
		this.remark = remark;
	}

	// Property accessors
	@Id
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid")
	@Column(name = "ID", unique = true, nullable = false, length = 64)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "PROJECTID", nullable = false, length = 64)
	public String getProjectId() {
		return this.projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	@Column(name = "OWNER", length = 64)
	public String getOwner() {
		return this.owner;
	}

	public void setOwner(String owner) {
		this.owner = owner;
	}

	@Column(name = "NAME", nullable = false, length = 40)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "LEAF", nullable = false, precision = 1, scale = 0)
	public Integer getLeaf() {
		return this.leaf;
	}

	public void setLeaf(Integer leaf) {
		this.leaf = leaf;
	}

	@Column(name = "TYPE", nullable = false, precision = 1, scale = 0)
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "PLATFORM", nullable = false, length = 12)
	public String getPlatform() {
		return this.platform;
	}

	public void setPlatform(String platform) {
		this.platform = platform;
	}

	@Column(name = "POS", nullable = false, precision = 1, scale = 0)
	public Integer getPos() {
		return this.pos;
	}

	public void setPos(Integer pos) {
		this.pos = pos;
	}

	@Column(name = "OPERATE", nullable = false, precision = 1, scale = 0)
	public Integer getOperate() {
		return this.operate;
	}

	public void setOperate(Integer operate) {
		this.operate = operate;
	}

	@Column(name = "SHORTCUT", precision = 1, scale = 0)
	public Integer getShortcut() {
		return this.shortcut;
	}

	public void setShortcut(Integer shortcut) {
		this.shortcut = shortcut;
	}

	@Column(name = "URL", length = 512)
	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name = "RMETHOD", length = 20)
	public String getRmethod() {
		return this.rmethod;
	}

	public void setRmethod(String rmethod) {
		this.rmethod = rmethod;
	}

	@Column(name = "LAYER", nullable = false, length = 64)
	public String getLayer() {
		return this.layer;
	}

	public void setLayer(String layer) {
		this.layer = layer;
	}

	@Column(name = "SHOWTYPE", nullable = false, precision = 1, scale = 0)
	public Integer getShowType() {
		return this.showType;
	}

	public void setShowType(Integer showType) {
		this.showType = showType;
	}

	@Column(name = "STATUS", nullable = false, precision = 1, scale = 0)
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "ICON", length = 128)
	public String getIcon() {
		return this.icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	@Column(name = "PARAMS", length = 256)
	public String getParams() {
		return this.params;
	}

	public void setParams(String params) {
		this.params = params;
	}

	@Column(name = "XTYPE", length = 256)
	public String getXtype() {
		return this.xtype;
	}

	public void setXtype(String xtype) {
		this.xtype = xtype;
	}

	@Column(name = "REMARK", length = 100)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "HANDLER", length = 256)
	public String getHandler() {
		return this.handler;
	}

	public void setHandler(String handler) {
		this.handler = handler;
	}

}